#ifndef ADDDIALOG_H
#define ADDDIALOG_H

#include <QDialog>
#include <QTreeWidgetItem>

namespace Ui {
class AddDialog;
}

class AddDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AddDialog(QWidget *parent = nullptr, QTreeWidgetItem *item = nullptr);
    ~AddDialog();

private slots:
    void on_buttonBox_accepted();

private:
    Ui::AddDialog *ui;
    QTreeWidgetItem *item;
signals:
    void doneAddItem(QTreeWidgetItem *item, QString text);
};

#endif // ADDDIALOG_H
